﻿using Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Metadata;

namespace Mono.Linker.Tests.Cases.Logging
{
    [ExpectNonZeroExitCode(1)]
    [SetupCompileBefore("LogStep.dll", new[] { "Dependencies/LogStep.cs" }, new[] { "illink.dll", "Mono.Cecil.dll" })]
    [SetupLinkerArgument("--custom-step", "Log.LogStep,LogStep.dll")]
    [SetupLinkerArgument("--verbose")]
    [LogContains("ILLink: error IL6001: Error")]
    [LogContains("logtest(1,1): warning IL6002: Warning")]
    [LogContains("ILLink: Info")]
    [LogContains("ILLink: Diagnostics")]
    public class CommonLogs
    {
        public static void Main()
        {
        }
    }
}
